import { FaissStore } from "@langchain/community/vectorstores/faiss";

export const useRetriever = (vectorStore: FaissStore) => {
    // 写个简易的
    const retriever = vectorStore?.asRetriever(2)

    return retriever
}